package com.lotusfall.service;

import com.github.pagehelper.PageInfo;
import com.lotusfall.api.ApiAdService;
import com.lotusfall.pojo.Ad;
import com.lotusfall.pojo.Comment;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class AdService {
    @DubboReference(version ="1.0")
    private ApiAdService apiAdService;

    /**
     * 查询轮播图列表
     * @param type
     * @param page
     * @param pageSize
     * @return
     */
    public PageInfo<Ad> queryAdList(Integer type,Integer page,Integer pageSize){
        return this.apiAdService.queryAdList(type,page,pageSize);
    }

    /**
     * 查询推荐列表
     * @param page
     * @param pageSize
     * @return
     */
    public PageInfo<Comment> queryCommentList(Integer page,Integer pageSize) {
        return this.apiAdService.queryCommentList(page,pageSize);
    }
}
